package com.yequan.designpattern.proxy.first_generation;

import com.yequan.designpattern.proxy.IGamePlayer;

public class GamePlayer implements IGamePlayer {

    private String username;

    public GamePlayer(String username) {
        this.username = username;
    }

    @Override
    public void login(String account, String password) {
        System.out.println("用户:" + username + "登录了" + account + "账号进行游戏");
    }

    @Override
    public void killBoss() {
        System.out.println("用户" + username + "在打怪");
    }

    @Override
    public void upgrade() {
        System.out.println("用户" + username + "升级了");
    }
}
